package com.excesys.exsecs.scada.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.time.LocalDateTime;

/**
 * 文件夹_
 *
 * @author pig
 * @date 2024-06-25 09:18:13
 */
@Data
@TableName("scada_folder")
@EqualsAndHashCode(callSuper = true)
@Schema(description = "文件夹_")
public class ScadaFolder extends Model<ScadaFolder> {


	/**
	* 主键id
	*/
    @TableId(type = IdType.AUTO)
    @Schema(description="主键id")
    private Long id;

	/**
	* 父节点，根节点缺省为0
	*/
    @Schema(description="父节点，根节点缺省为0")
    private Long parentId;

	/**
	* 文件夹名称
	*/
    @Schema(description="文件夹名称")
    private String folderName;

	/**
	* 组态id,关联组态
	*/
    @Schema(description="组态id,关联组态")
    private Long scadaId;

	/**
	* 备注
	*/
    @Schema(description="备注")
    private String remark;

	@Schema(description = "类型")
	private String type;

	@Schema(description = "排序值")
	private Integer sort;

	/**
	* 创建人
	*/
	@TableField(fill = FieldFill.INSERT)
    @Schema(description="创建人")
    private String createBy;

	/**
	* 创建时间
	*/
	@TableField(fill = FieldFill.INSERT)
    @Schema(description="创建时间")
    private LocalDateTime createTime;

	/**
	* 更新人
	*/
	@TableField(fill = FieldFill.INSERT_UPDATE)
    @Schema(description="更新人")
    private String updateBy;

	/**
	* 更新时间
	*/
	@TableField(fill = FieldFill.INSERT_UPDATE)
    @Schema(description="更新时间")
    private LocalDateTime updateTime;

	@TableField(exist = false)
	@Schema(description = "父文件夹")
	private String parentName;
}